package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjSpareCustomParam;
import com.zb.vo.GoodsCustomParamVo;

import java.util.List;

/**
 * <p>
 * 备件自定义参数关联表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-08-15
 */
public interface ZjSpareCustomParamService extends IService<ZjSpareCustomParam> {

    /**
     * 新增、修改、删除备件自定义参数
     * @param custAccId 商家ID
     * @param spareId 备件ID
     * @param customParamVos 自定义参数对象
     * @param delCustomParamIds 删除的自定义参数ID集合
     */
    void save(Long custAccId, Long spareId, List<GoodsCustomParamVo> customParamVos, List<Long> delCustomParamIds);

    /**
     * 根据备件ID获取自定义参数
     * @param spareId 备件ID
     * @return
     */
    List<ZjSpareCustomParam> getBySpareId(Long spareId);

    /**
     * 根据备件ID删除自定义参数
     * @param spareIds
     */
    void deleteBatchBySpareIds(List<Long> spareIds);
}
